package com.coldchain.admin.config.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author fangliai
 * @since 2018-11-12
 */
@TableName("ch_area")
public class Area implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private Integer id;

    /**
     * 父级ID
     */
    @TableField("PARENT_ID")
    private Integer parentId;

    /**
     * 名称
     */
    @TableField("NAME")
    private String name;

    /**
     * 简称
     */
    @TableField("SHORT_NAME")
    private String shortName;

    /**
     * 经度
     */
    @TableField("LONGITUDE")
    private Float longitude;

    /**
     * 纬度
     */
    @TableField("LATITUDE")
    private Float latitude;

    /**
     * 等级(1省/直辖市,2地级市,3区县,4镇/街道)
     */
    @TableField("LEVEL")
    private Integer level;

    /**
     * 排序
     */
    @TableField("SORT")
    private Integer sort;

    /**
     * 状态(0禁用/1启用)
     */
    @TableField("STATUS")
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public Float getLongitude() {
        return longitude;
    }

    public void setLongitude(Float longitude) {
        this.longitude = longitude;
    }

    public Float getLatitude() {
        return latitude;
    }

    public void setLatitude(Float latitude) {
        this.latitude = latitude;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Area{" +
        "id=" + id +
        ", parentId=" + parentId +
        ", name=" + name +
        ", shortName=" + shortName +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", level=" + level +
        ", sort=" + sort +
        ", static=" + status +
        "}";
    }
}
